.class Lcom/htc/android/footprints/view/GpsUpdatePanel$2;
.super Ljava/lang/Object;
.source "GpsUpdatePanel.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/view/GpsUpdatePanel;->initView()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V
    .locals 0
    .parameter

    .prologue
    .line 112
    iput-object p1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;->this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter "view"

    .prologue
    .line 113
    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;->this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;

    invoke-virtual {v1}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a000c

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 115
    .local v0, textE:Ljava/lang/String;
    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;->this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;

    #getter for: Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsE:Landroid/widget/Button;
    invoke-static {v1}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->access$300(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Landroid/widget/Button;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Button;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 116
    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;->this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;

    #getter for: Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v1}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->access$100(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v1

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    if-lez v1, :cond_0

    .line 117
    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;->this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;

    #getter for: Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v1}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->access$100(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v1

    iget v2, v1, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    mul-int/lit8 v2, v2, -0x1

    iput v2, v1, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    .line 126
    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;->this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateEditData(Z)V

    .line 127
    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;->this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;

    #getter for: Lcom/htc/android/footprints/view/GpsUpdatePanel;->mCallback:Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;
    invoke-static {v1}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->access$200(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 128
    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;->this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;

    #getter for: Lcom/htc/android/footprints/view/GpsUpdatePanel;->mCallback:Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;
    invoke-static {v1}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->access$200(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;

    move-result-object v1

    invoke-interface {v1}, Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;->onUpdatMap()V

    .line 130
    :cond_1
    return-void

    .line 121
    :cond_2
    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;->this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;

    #getter for: Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v1}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->access$100(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v1

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    if-gez v1, :cond_0

    .line 122
    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;->this$0:Lcom/htc/android/footprints/view/GpsUpdatePanel;

    #getter for: Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v1}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->access$100(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v1

    iget v2, v1, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    mul-int/lit8 v2, v2, -0x1

    iput v2, v1, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    goto :goto_0
.end method
